using System;
using System.Collections.Generic;
using System.Web.UI;
using Framework.Library.Core.Config;

namespace Framework.Portal.Layouts.Client.Modules.Debugs
{
    public partial class Debug : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var cfg = new Configurations();
                if (Configurations.DEBUG_MODE)
                {
                    string sessionName = Configurations.PORTALID + "PageGenerate";
                    if (Session[sessionName] != null)
                    {
                        List<string> lstCounter = (List<string>)Session[sessionName];
                        foreach (string s in lstCounter)
                        {
                            lblDebug.Text += "<span>" + s + "</span><br />";
                        }
                    }
                }
            }
        }
    }
}